package com.example.demo.spring;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wangsl
 * @date 2020/7/6 1:10
 * <p>
 * Description:
 */
@Configuration
public class DogConfig {

    @Bean(initMethod = "init", destroyMethod = "destroy")
    public Dog createDog(){
        return new Dog();
    }
}
